<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../common/jsp/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>原料需求一览</title>
<%@ include file="../../common/jsp/config.jsp"%>
<script type="text/javascript">

</script>
</head>

<body>
    <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="common/images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">订单管理</span>
			&nbsp;<img src="common/images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">订单详细信息</span></td>
		  </tr>
		</table>
    </div>
	<div class="btn-bottom" align="right" style="margin-right:20px"> 
	    <input onclick=javascript:window.location.href='newMaterialsRequest.action?orderId=<s:property value="condition.orderId"/>' type="button" value="新建采购需求单" class="inputlong" />
	</div>
   <div class="tab">
	<div id="tb_" class="tb_">
	  <ul>
		<li class="normaltab" onClick=javascript:window.location.href='showPurchaseOrderInfo.action?orderId=<s:property value="condition.orderId" />'>订单信息</li>
		<li class="hovertab">采购信息</li>
	  </ul>
    </div>
	<div class="dis">
     <div class="main_1">
        <table width="100%" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
          <tr class="ksglxx2bg">
             <th width="10%" >原料编号</th>
             <th width="8%" >原料分类</th>
             <th width="10%" >原料名称</th>
             <th width="20%" >属性描述</th>
             <th width="8%" >需求数量</th>
             <th width="8%" >单位</th>
             <th width="10%" >要求到货日期</th>
             <th >订单号</th>
          </tr>
		<s:iterator value="requestList" id="request" status="st">
          <s:if test="#st.Odd">
            <tr class="odd">
              <td><s:property value="#request.code" /></td>
              <td><s:property value="#request.category" /></td>
              <td><s:property value="#request.name" /></td>
              <td><s:property value="#request.property" /></td>
              <td><s:property value="#request.planNumber" /></td>
              <td><s:property value="#request.units" /></td>
              <td><s:date name="#request.finishDate" format="yyyy-MM-dd"/></td>
              <td><s:property value="#request.orderId" /></td>
            </tr>
          </s:if>
          <s:else>
            <tr class="even">
              <td><s:property value="#request.code" /></td>
              <td><s:property value="#request.category" /></td>
              <td><s:property value="#request.name" /></td>
              <td><s:property value="#request.property" /></td>
              <td><s:property value="#request.planNumber" /></td>
              <td><s:property value="#request.units" /></td>
              <td><s:date name="#request.finishDate" format="yyyy-MM-dd"/></td>
              <td><s:property value="#request.orderId" /></td>
            </tr>
           </s:else>
		</s:iterator>
      </table>
     </div>
   </div>
</body>
</html>
